package com.atstudy.stream;

import java.io.*;
import java.util.Scanner;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/29 14:00
 * @copyright: 博为峰
 */
public class StreamReaderWriterDemo {
    public static void main(String[] args) throws IOException {
        //接收标准输入设备输入

        //标准输入设备流（字节流）
        InputStream in = System.in;
        //字符流
        InputStreamReader inputStreamReader = new InputStreamReader(in);//桥梁
        //字符流
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        String line = bufferedReader.readLine();

        //输出到标准输出设备（字节流）
        PrintStream out = System.out;
        //字符流
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(out);//桥梁
        //字符流
        BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);

        bufferedWriter.write(line.toUpperCase());
        bufferedWriter.newLine();

        bufferedWriter.close();
    }
}
